home *** CD-ROM | disk | FTP | other *** search
/ Power Programmierung / Power-Programmierung (Tewi)(1994).iso / magazine / progjour / 1989 / 02 / pwcomm1 / ttycls.h < prev   
Text File  |  1988-12-04  |  851b  |  38 lines

  1. #ifdef WINDOWS
  2. #define HPS HDC
  3. #endif
  4.  
  5. /* 
  6.  * this structure contains most of the information needed
  7.  * to use the tty window.
  8.  */
  9.  
  10. struct TTYWND {
  11.     HWND hWnd;
  12. #ifdef WINDOWS
  13.     POINT Pos;
  14.     HANDLE hVidBuf;
  15. #else
  16.     POINTL Pos;
  17. #endif
  18.     BYTE *pVidBuf;
  19.     short CWidth, CHeight;
  20.     short Top, Left;
  21.     short Width, Height;
  22.     short MaxLines,MaxCols;
  23.     short MaxLineLength;
  24.     short CurLineOffset;
  25.     short oCurrentLine;
  26.     short oVidLastLine;
  27.     BOOL LFonCR;
  28.     BOOL CRonLF;
  29.     BOOL Wrap;
  30.     BYTE ebitmask;
  31. };
  32. typedef struct TTYWND *PTTYWND;
  33.  
  34. /* shared function declarations */
  35. InitTTYWindow(PTTYWND,short,short,short,short,short,short,BOOL,BOOL,BOOL,BYTE);
  36. int NEAR TTYDisplay(PTTYWND pTTYWnd, short len, BYTE *str);
  37. void NEAR TTYWndPaint(PTTYWND pTTYWnd, HPS hPS, short top, short bottom);
  38.